#pragma once
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
#include<stdbool.h>

//--
// 

//
typedef struct BinaryTreeNode* QueueType;
typedef struct QueueNode
{
	QueueType val;
	struct QueueNode* next;
}QNode;
typedef struct Queue
{
	QNode* front;
	QNode* rear;
	size_t size;
}Queue;

void QueueInit(Queue* pq);
void QueuePush(Queue* pq, QueueType val);
void QueuePop(Queue* pq);

QueueType QueueFront(Queue* pq);
QueueType QueueRear(Queue* pq);

int QueueSize(Queue* pq);
bool QueueEmpty(Queue* pq);

void QueueDestroy(Queue* q);
